package com.turing.common.exception;

public class NoAuthorizationException extends Exception {

    private String message;

    private String code;

    public NoAuthorizationException() {
        this.code = "401";
        this.message = "Authorize failed, please contact administrator!";
    }

    public NoAuthorizationException(String message, String code) {
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
